<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body, div {
            margin: 0;
            padding: 0;
        }

        .item1 {
            display: inline-block;
            width: 100px;
            height: 100px;
            margin-top: 40px;
            padding-top: 10px;
            margin-right: 10px;
            background-color: red;
        }

        .item2 {
            margin-top: 30px;
            margin-right: 20px;
            padding-top: 20px;
            display: inline-block;
            background-color: pink;
        }
    </style>
</head>
<body>
<div class="item1">item1</div>
<div class="item2">item2</div>
</body>
</html>
